<?php
/**
 * 迷兔导航是我们尝试的第一个主题，迷兔响应式资源分享网址导航，
 * 
 * @package 迷兔导航1.0 
 * @author 不吃肉肉
 * @version 1.0
 * @link https://www.yuez.cn
 */

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
 $this->need('header.php');
 ?>
  <!-- 搜索 -->
    <div class="container">
     
        </div>
    <!-- 主框架 -->
    <div class="container">
        <?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?>
  			  <?php $this->widget('Widget_Metas_Category_List')->to($categories); ?>
      		    <?php while ($categories->next()): ?>
                  <?php if(count($categories->children) === 0): ?>
                  <?php $this->widget('Widget_Archive@category-' . $categories->mid, 'pageSize=9&type=category', 'mid=' . $categories->mid,'pageSize=1' )->to($posts); ?> 
                  
        <!-- 默认样式 -->
        <span class="mdi mdi-<?php $categories->slug(); ?> mdi-12px" style="margin:15px 0">    <?php $categories->name(); ?> </span>
        
        <div class="row text-center">
         <?php while ($posts->next()): ?> 
         
            <div class="col-md-4 col-xs-12 col-sm-6 tool-li">
                <div class="col-sm-i">
                <a href="<?php $posts->fields->meeurl(); ?>" target="_blank">
                    <div class="tool-li-li li-bgc-<?php $posts->cid(); ?>"><i class="mee mdi-internet-explorer mdi-12px"></i></div>
                </a>
                    <div class="text-left" style="margin-top:10px;"><?php $posts->title(); ?></div>
                <div class="text-left text-color-height"><?php $posts->excerpt(20, ''); ?></div>
            </div>
            </div>
 <?php endwhile; ?>   
        </div>
    <!-- 默认样式 -->
            <?php else: ?>
      <?php endif; ?>
  <?php endwhile; ?>
    </div>
<?php $this->need('footer.php'); ?>
</body>
</html>